package com.yld.demo2.util;

import com.yld.demo2.entity.table.OrderList;
import com.yld.demo2.entity.vo.OrderListVo;
import org.springframework.beans.BeanUtils;

import java.sql.Date;

public class DataUtil {

    /**
     * 获取 当前  年 月 日
     */
    public static OrderListVo nowDate(OrderList orderList){
        OrderListVo orderListVo = new OrderListVo();
        BeanUtils.copyProperties(orderList,orderListVo);
        orderListVo.setOrderdate(new Date(System.currentTimeMillis()));
        return orderListVo;
    }
}
